package com.bxd.baodan.item;

import com.j256.ormlite.table.DatabaseTable;
import com.bxd.baodan.base.BaseItem;

import java.util.List;

/**
 * 广告bean  首页广告和轮播播广告通用的bean
 */
@DatabaseTable(tableName = "ad_item")
public class BannerBean extends BaseItem{

	/**
	 * code : 0
	 * tips :
	 * data : [{"type":1,"imageUrl":"http://s29.xtest.tech/attach//download/app/pic/55/5a2412e2f29a7883b5a43a3ce523d1c6.jpg","title":"测试轮播图展示","startDate":"2017-08-31 11:37:36","endDate":"2017-10-14 11:37:41","desc":"","data":{"gotoUrl":"https://pro.modao.cc/"}},{"type":1,"imageUrl":"http://s29.xtest.tech/attach//download/app/pic/5f/0e4b80655a842adec1527c56526e1602.jpg","title":"轮播图展示","startDate":"2017-09-04 11:38:49","endDate":"2017-10-07 11:38:52","desc":"","data":{"gotoUrl":"http://about:cehome.com"}},{"type":1,"imageUrl":"http://s29.xtest.tech/attach//download/app/pic/26/bfa8235a4ad64275692910db754d0cf6.jpg","title":"暗色图片","startDate":"2017-09-04 11:48:49","endDate":"2017-10-14 11:48:53","desc":"","data":{"gotoUrl":"http://bxd.xtest.tech/vadmin/index"}},{"type":2,"imageUrl":"http://s29.xtest.tech/attach//download/app/pic/85/1b15d76b2a64f7e6089f55e7f09be831.jpg","title":"测试1234","startDate":"2017-09-19 16:41:50","endDate":"2017-09-19 20:41:56","desc":"","data":{"gotoPage":{"ios":"BXHomeCustomController","android":"StartDesignActivity"}}}]
	 */

	public int code;
	public String tips;
	public List<BannerBean_> data;

	public static class BannerBean_ {
		/**
		 * type : 1
		 * imageUrl : http://s29.xtest.tech/attach//download/app/pic/55/5a2412e2f29a7883b5a43a3ce523d1c6.jpg
		 * title : 测试轮播图展示
		 * startDate : 2017-08-31 11:37:36
		 * endDate : 2017-10-14 11:37:41
		 * desc :
		 * data : {"gotoUrl":"https://pro.modao.cc/"}
		 */

		public int type;
		public String imageUrl;
		public String title;
		public String startDate;
		public String endDate;
		public String desc;
		public PathBean data;


	}

	public static class PathBean {
		/**
		 * gotoUrl : https://pro.modao.cc/
		 */

		public String gotoUrl;
		public GoPage gotoPage;
	}
	public static class GoPage {
		/**
		 * gotoUrl : https://pro.modao.cc/
		 */

		public String android;
		public String ios;
	}

}
